//
//  cartTableViewCell.m
//  ZPSALE
//
//  Created by tmosport on 14-6-17.
//  Copyright (c) 2014年 tmosport. All rights reserved.
//

#import "cartTableViewCell.h"

@implementation cartTableViewCell
bool swipedToDelete = NO;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)willTransitionToState:(UITableViewCellStateMask)state
{
    if (state == UITableViewCellStateShowingEditControlMask) {
        swipedToDelete = YES; // BOOL ivar
    }
}

- (void)setEditing:(BOOL)editing animated:(BOOL)animated
{
    if (self.editing == editing)
	{
		return;
	}
	[super setEditing:editing animated:animated];    

    
    swipedToDelete = NO;
}
@end
